For barriers like the hot corner which are made up of multiple axis
barriers, make sure that all the barriers have been left before
resetting the barrier.
},
_onBarrierLeft: function(barrier, event) {
- this._reset();
- this._isTriggered = false;
+ barrier._isHit = false;
+ if (this._barriers.every(function(b) { return !b._isHit; })) {
+ this._reset();
+ this._isTriggered = false;
+ }
},
_trigger: function() {
},
_onBarrierHit: function(barrier, event) {
+ barrier._isHit = true;
+
// If we've triggered the barrier, wait until the pointer has the
// left the barrier hitbox until we trigger it again.
if (this._isTriggered)